<template>
	<div>
		<el-card class="box-card" style="margin-top:15px">
			<div slot="header" class="clearfix">
				<span style="font-weight: bold">设置（建议先填写频次高值、低值，日剂量，我们会计算一个日剂量的数据供您参考）</span>
			</div>
			<el-row :gutter="15">
				<el-form size="medium" label-width="100px">
					<el-col :span="8">
						<el-form-item label="计算方式">
						<el-select v-model="submit.calculateLabel" size="small" placeholder="请选择计算方式">
						    <el-option
						      v-for="item in jsfsOptions"
						      :key="item.value"
						      :label="item.label"
						      :value="item.value">
						    </el-option>
						  </el-select>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="给药单位">
						<el-select v-model="submit.doseUnit" size="small" placeholder="请选择给药单位">
						    <el-option
						      v-for="item in gydwOptions"
						      :key="item.value"
						      :label="item.label"
						      :value="item.value">
						    </el-option>
						  </el-select>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="持续天数<=">
							<el-input v-model="submit.cxts" v-only-number="{max:10000000000,min:0,precision:0}" size="small" placeholder="请输入持续天数"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="频次低值">
							<el-input v-model="submit.freQuencyLow" v-only-number="{max:10000000000,min:0,precision:0}" size="small" style="width:60px;"></el-input>
							<div style="display:inline-block;">次/</div>
							<el-input v-model="submit.freQuencyLowDay" v-only-number="{max:10000000000,min:0,precision:0}" size="small" style="width:60px;"></el-input>
							<div style="display:inline-block;">天</div>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="频次高值">
							<el-input v-model="submit.freQuencyHigh" size="small" style="width:60px;"></el-input>
							<div style="display:inline-block;">次/</div>
							<el-input v-model="submit.freQuencyHighDay" size="small" style="width:60px;"></el-input>
							<div style="display:inline-block;">天</div>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="审查级别">
							<el-select v-model="submit.freQuencySlCode" size="small" placeholder="请选择审查级别">
								<el-option
								  v-for="item in scjbPCOptions"
								  :key="item.value"
								  :label="item.label"
								  :value="item.value">
								</el-option>
							  </el-select>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="次剂量低值">
							<el-input v-model="submit.doseEachLow" size="small" placeholder="请输入次剂量低值" v-only-number="{max:10000000000,min:0,precision:3}"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="次剂量高值">
							<el-input v-model="submit.doseEachHigh" size="small" placeholder="请输入次剂量高值" v-only-number="{max:10000000000,min:0,precision:3}"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="审查级别">
							<el-select v-model="submit.doseEachSlCode" size="small" placeholder="请选择审查级别">
								<el-option
								  v-for="item in scjbCIOptions"
								  :key="item.value"
								  :label="item.label"
								  :value="item.value">
								</el-option>
							  </el-select>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="日剂量低值">
							<el-input v-model="submit.doseDayLow" size="small" placeholder="请输入日剂量低值" v-only-number="{max:10000000000,min:0,precision:3}"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="日剂量高值">
							<el-input v-model="submit.doseDayHigh" size="small" placeholder="请输入日剂量高值" v-only-number="{max:10000000000,min:0,precision:3}"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="审查级别">
							<el-select v-model="submit.doseDaySlCode" size="small" placeholder="请选择审查级别">
								<el-option
								  v-for="item in scjbRIOptions"
								  :key="item.value"
								  :label="item.label"
								  :value="item.value">
								</el-option>
							  </el-select>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="开方限制<=">
							<el-input v-model="submit.jjdw" size="small" placeholder="请输入开方限制" v-only-number="{max:10000000000,min:0,precision:3}"></el-input> 
						</el-form-item>
					</el-col>
				</el-form>
			</el-row>
		</el-card>
	</div>
</template>

<script>
	export default {
		name:"jlSetCard",
		data () {
			return {
				jsfsOptions:[
					{
					  value: '1',
					  label: '常规'
					}, {
					  value: '2',
					  label: '体表'
					}, {
					  value: '3',
					  label: '体重'
					}
				],//计算方式options
				gydwOptions:[
					{
					  value: '支',
					  label: '支'
					}
				],//给药单位options
				
				scjbPCOptions:[
					{
					  value: '0',
					  label: '拦截'
					},
					{
					  value: '1',
					  label: '禁忌'
					},
					{
					  value: '2',
					  label: '不推荐'
					},
					{
					  value: '3',
					  label: '轻微'
					},
				],//频次审查级别options
				
				scjbCIOptions:[
					{
					  value: '0',
					  label: '拦截'
					},
					{
					  value: '1',
					  label: '禁忌'
					},
					{
					  value: '2',
					  label: '不推荐'
					},
					{
					  value: '3',
					  label: '轻微'
					},
				],//次剂量审查级别options
				
				scjbRIOptions:[
					{
					  value: '0',
					  label: '拦截'
					},
					{
					  value: '1',
					  label: '禁忌'
					},
					{
					  value: '2',
					  label: '不推荐'
					},
					{
					  value: '3',
					  label: '轻微'
					},
				],//日剂量审查级别options
				
				submit:{
					calculateLabel:"1",
					doseUnit:"支",
					cxts:"",
					freQuencyLow:"",//频次低值 次
					freQuencyLowDay:"",//频次低值 天
					freQuencyHigh:"",//频次高值 次
					freQuencyHighDay:"",//频次高值 天
					doseEachSlCode:"0",//次剂量审查级别value
					freQuencySlCode:"0",//频次审查级别value
					doseDaySlCode:"0",//日剂量审查级别value
					doseEachLow:"",//次剂量低值
					doseEachHigh:"",//次剂量高值
					doseDayLow:"",//日剂量低值
					doseDayHigh:"",//日剂量高值
					jjdw:"",//开方限制
				}
			}
		},
		methods:{
			resetFun(){
				this.submit={
					calculateLabel:"1",
					doseUnit:"支",
					cxts:"",
					freQuencyLow:"",//频次低值 次
					freQuencyLowDay:"",//频次低值 天
					freQuencyHigh:"",//频次高值 次
					freQuencyHighDay:"",//频次高值 天
					doseEachSlCode:"0",//次剂量审查级别value
					freQuencySlCode:"0",//频次审查级别value
					doseDaySlCode:"0",//日剂量审查级别value
					doseEachLow:"",//次剂量低值
					doseEachHigh:"",//次剂量高值
					doseDayLow:"",//日剂量低值
					doseDayHigh:"",//日剂量高值
					jjdw:"",//开方限制
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.el-card {
		margin-left: 3px;
	}
	.dialogFirstRow>>>.el-input {
		width: 70px;
		margin-right: 10px;
	}
	
	.el-form-item.s_selectbox>>>.el-form-item__content {
		width: 80%;
	}
	
	
	.demo-form-inline>>>.el-form-item {
		margin-bottom: 0px;
	}
	
	.dialogFirstRow>>>label {
		height:41px;
		display:inline-block;
	}
</style>
